<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<title>学生信息管理系统</title>
<style>

</style>
</head>
<body>
	<%@include file="navPage.jsp"%>
	<div class="container well well-lg" >
<!-- 	
	<p>这是消息通知界面</p>
	<p>通过servlet方法判断是否有消息通知来分别显示：</p>
	<p>1.很抱歉现在没有通知消息</p>
	<p>2.消息内容！</p>

		<div class="panel panel-info">
			<div class="panel-heading">
				<div>标题</div>
			</div>
			<div class="panel-body">
				<div>内容</div>
			</div>
		</div>
		-->
		<%
		request.setCharacterEncoding("utf-8");
		response.setCharacterEncoding("utf-8");
		if(application.getAttribute("messageCount")!=null){
			int count=(int)application.getAttribute("messageCount");
			for(int i=0;i<count;i++){
				out.print("<div class=\"panel panel-info\"><div class=\"panel-heading\"><div>");
				out.print(application.getAttribute("messageTitle"+i));
				out.print("</div></div><div class=\"panel-body\"><div>");
				out.print(application.getAttribute("messageContent"+i));
				out.print("</div></div></div>");
			}
		}
		else{
			out.print("很抱歉现在没有通知消息");
		}
		%>
  </div>
</body>
</html>